<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
	<script src="${ctxWebStatic}/laydate/laydate.js"></script>
	<jsp:include page="/WEB-INF/views/layouts/head.jsp"></jsp:include>
	<head>
		<title>登录</title>
		<script type="text/javascript">
		$(document).ready(function() {
			if("${returnCode}"=="0"){
				$("#errMessage").html("${returnMessage}");
				$("#err_tip").css("display","inline");
				
			}
		});
		
		function webLogin(){
			if($("#username").val()==""){
				$("#errMessage").html("用户名不能为空");
				$("#err_tip").css("display","inline");
				return;
			}
			if($("#password").val()==""){
				$("#errMessage").html("密码不能为空");
				$("#err_tip").css("display","inline");
				return;
			}
			$("#loginForm").submit();
		}
	</script>
	</head>
	<body>
		<div class="page">
			<!--logo-->
			<div class="logo_top logo_bor">
				<div class="container">
					<div class="row">
						<figure class="col-xs-5 col-sm-3  pad0">
							<a href="${ctxWeb}/webIndex">
								<img src="${ctxWebStatic}/images/phone_logo.png" alt="" />
							</a>
						</figure>
					</div>
				</div>
			</div>
			<!--logo-->
			<!--banner图-->
			<div class="login_banner">
				<div class="login_img" style="background:#fb3c4b url(${ctxWebStatic}/images/login_bg.jpg) no-repeat center center;height: 100%;">
				</div>
				<!--登陆信息-->
				<div class="container">
					<div class="login_box">
						<div class="login_bar_info">
							<h3 class="user_title">用户登录</h3>
							<form action="${ctxWeb}/login" id="loginForm" method="post">
								<div class="form-group">
							    	<input type="text" id="username" name="username" placeholder="用户名、邮箱、手机号" class="form-control input_person" />
							  	</div>
								<div class="form-group">
							    	<input type="password"  onpaste="return false" oncontextmenu="return false" oncopy="return false" oncut="return false" id="password" name="password" placeholder="密码" class="form-control input_password" />
							  	</div>
							  	<p class="password">
							  		<a href="${ctxWeb}/password/forget">忘记密码</a>
							  	</p>
							  	<p class="login_btn_red">
							  		<a href="javascript:void(0)" onclick="webLogin()">登录</a>
							  	</p>
							  	<div class="login_error_tips" id="err_tip" style="display: none;">
									<i class="error_img"></i>
									<span id="errMessage">您输入的账号或密码不匹配，请重新输入</span>
								</div>
							</form>
						</div>
						<div class="resigt_go">
							<a href="${ctxWeb}/register" >
								<img src="${ctxWebStatic}/images/go_right.png" alt="" />
								<span>立即注册</span>
							</a>
						</div>
					</div>
				</div>
				<!--登陆信息结束-->
			</div>
			<!--banner图结束-->
			<!--foot-->
			<jsp:include page="/WEB-INF/views/layouts/buttom_3.jsp"></jsp:include>
			<!--foot结束-->
		</div>
	</body>
	
</html>
